{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('mobmall_manage/announce/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card">
	<div class="card-body">
		<div class="dataTable-toolbar">
			<a href="{:url('mobmall_manage/announce/add')}" class="btn btn-primary btn-sm dataTable-add">添加</a>
		</div>
		<form class="">
			<table class="table table-striped table-bordered table-hover dataTable-table">
				<thead>
					<tr>
						<th width="76">序号</th>
						<th width="120">标签</th>
						<th>标题</th>
						<th width="240">目标页面名称</th>
						<th width="146">创建时间</th>
						<th width="60">状态</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr>
						<td>{$i}</td>
						<td>{$vo['tag']}</td>
						<td>{$vo['title']}</td>
						<td>
							<div class="infoattr infoattr-success">
								<dd><span>标识：</span>{$vo['page_flag']}</dd>
								<dd><span>名称：</span>{$vo['page_name']}</dd>
								<dd><span>数据：</span>{$vo['page_data']}</dd>
								<dd><span>额外：</span>{$vo['page_extra']}</dd>
							</div>
						</td>
						<td>{$vo['create_time_show']}</td>
						<td>{$vo['state_show']|raw}</td>
						<td>
							<a href="{:url('mobmall_manage/announce/add', ['id'=>$vo['id']])}" class="btn btn-primary btn-xs">编辑</a>
							<a href="{:url('mobmall_manage/announce/doDelete', ['id'=>$vo['id']])}" class="btn btn-danger btn-xs J_layerConfirm" data-tip="确认删除吗？">删除</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			<div class="dataTable-controll">
				<button type="submit" class="btn btn-success btn-sm dataTable-vieworder J_ajaxSubmit">提交排序</button>
			</div>
		</form>
		<div class="dataTable-pages">{$pageShow|raw}</div>
	</div>
</div>
{/block}